<template>
    <fieldset>
        <legend>插槽</legend>
        <header>
            <slot name="header">header的默认值</slot>
        </header>
        <main>
            <slot name="main"></slot>
        </main>
        <footer>
            <slot name="footer"></slot>
        </footer>
        <!-- 匿名插槽 -->
        <slot></slot>
        <slot name="list" :ac="arr"></slot>
        
    </fieldset>
</template>
<script>
    export default {
        data() {
            return {
                arr: ['吃', '写代码', '改bug']
            }
        }
    }
</script>